package com.jiujia.game.sdk.pay.internal;

import com.jiujia.game.sdk.base.core.model.JGameOrderInfo;
import com.jiujia.game.sdk.base.core.model.JGameRoleInfo;
import com.jiujia.game.sdk.base.core.model.JGameSdkPayInfo;
import com.jiujia.game.sdk.base.util.JGameLog;
import com.jiujia.game.sdk.pay.api.IPayService;
import com.jiujia.game.sdk.pay.api.PayCallback;

/**
 * *************************************************
 * Class: JGamePayService
 * Author: Jiujia
 * Time: 2025/5/2 16:49
 * Description:
 * *************************************************
 */
public class JGamePayService implements IPayService {
    @Override
    public void pay(JGameOrderInfo mJGameOrderInfo, JGameRoleInfo mJGameRoleInfo, PayCallback callback) {
        JGameLog.i("------------- JGamePayService_pay-------------");
        JGameLog.i("mJGameOrderInfo: " + mJGameOrderInfo.toString());
        JGameLog.i("mJGameRoleInfo: " + mJGameRoleInfo.toString());
        if (callback != null) {
            callback.onSuccess(new JGameSdkPayInfo(mJGameOrderInfo.getCpOrderID()));
        }
    }
}
